<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>修改用户组</title>
	<script type="text/javascript">
	<!--
	$(function(){
		$("#sysUserGroupFrom").validate({
			rules:{
				groupName:{
					required:true
				}
			},
			errorClass: "help-inline",
			errorElement: "span",
			highlight:function(element, errorClass, validClass) {
				$(element).parents('.control-group').addClass('error');
			},
			unhighlight: function(element, errorClass, validClass) {
				$(element).parents('.control-group').removeClass('error');
				$(element).parents('.control-group').addClass('success');
			}
		});
		
	});
	//-->
	</script>
</head>
<body>
	<div class="container-fluid">
    <hr>
    <div class="row-fluid">
      <div class="span12"><a href="${pageContext.request.contextPath }/sysuser/querySysUserGroupPage.do" class="btn btn-primary">返回</a></div>
    </div>
    <div class="row-fluid">
	    <div class="span12">
	        <div class="widget-box">
	          <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
	            <h5>修改用户组</h5>
	          </div>
	          <div class="widget-content nopadding">
	            <form class="form-horizontal" method="post" action="${pageContext.request.contextPath }/sysuser/updateSysUserGroup.do" id="sysUserGroupFrom" novalidate="novalidate">
	            	<input type="hidden" name="groupId" value="${sysUserGroup.groupId }" />
	              <div class="control-group">
	                <label class="control-label">用户组名</label>
	                <div class="controls">
	                  <input type="text" name="groupName" value="${sysUserGroup.groupName }">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">用户组编号</label>
	                <div class="controls">
	                  <input type="text" name="groupCode" value="${sysUserGroup.groupCode }">
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">描述</label>
	                <div class="controls">
	                	<textarea name="groupMeno" rows="4" cols="8">${sysUserGroup.groupMeno }</textarea>
	                </div>
	              </div>
	              <div class="control-group">
	                <label class="control-label">类型</label>
	                <div class="controls">
	                <div class="span3">
	                  <select name="aliveFlag">
	                  	<c:forEach var="flag" items="${flags }">
	                  	<c:if test="${flag.key eq sysUserGroup.aliveFlag }">
	                  	<option value="${flag.key }" selected="selected">${flag.value }</option>
	                  	</c:if>
	                  	<c:if test="${flag.key ne sysUserGroup.aliveFlag }">
	                  	<option value="${flag.key }">${flag.value }</option>
	                  	</c:if>
	                  	</c:forEach>
	                  </select>
	                </div>
	                </div>
	              </div>
	              <div class="form-actions">
	                <input type="submit" value="提交" class="btn btn-success">
	              </div>
	            </form>
	          </div>
	        </div>
	      </div>
      </div>
    </div>
</body>
</html>